Skip to content

7x/remove response interface #3670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 17, 2019
Merged

7x/remove response interface #3670

merged 9 commits into from
Apr 17, 2019

Conversation

Mpdreamz
Copy link
Member

API Calls now return concrete response implementations.

DoRequestAsync no longer needs to do perform tricks to go from Task<Response> to Task<IResponse>.

Interfaces are kept for responses where they benefit from covariance.
This change now also makes ISearchRequest<T> completely covariant 🎉

@Mpdreamz Mpdreamz force-pushed the 7x/remove-response-interface branch from 37e37da to 7906ff2 Compare April 16, 2019 13:10
… only being allowed if generic and covariant
@Mpdreamz Mpdreamz merged commit 12bf3d8 into 7.x Apr 17, 2019
@Mpdreamz Mpdreamz deleted the 7x/remove-response-interface branch April 17, 2019 07:45
@Mpdreamz
Copy link
Member Author

Reviewed with the team, using my admin powers to merge unreviewed.

Mpdreamz added a commit that referenced this pull request Apr 17, 2019
* remove CatResponse

* progress commit

* things compile again

* found more cases

* fixed compilation

* fix unit tests

* DoRequestAsync no longer needs to transform task to interface result

* Simplified SuggestDictionary serializer by doing a straight cast

* wrote codestandard test to assert new rule around response interfaces only being allowed if generic and covariant

(cherry picked from commit 12bf3d8)
@Mpdreamz
Copy link
Member Author

ported to master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant